package com.itheima.zuoye;

public class Test3 {
    public static void main(String[] args) {
        Student1 s1 = new Student1();
        s1.setName("张三");
        s1.setAge(18);
        s1.setScore(99.9);
        s1.showMsg();
        s1.exam();
        Teacher t1 = new Teacher();
        t1.setName("李四");
        t1.setAge(30);
        t1.setSubject("数学");
        t1.showMsg();
        t1.teach();

    }

}
